package com.wangzhixuan.model.vo;

import java.io.Serializable;

import com.wangzhixuan.commons.constant.ApiCode;
import com.wangzhixuan.commons.scan.MyException;
import com.wangzhixuan.commons.utils.StringUtils;

/**
 * <p>
 * 
 * </p>
 * 
 * @author zhixuan.wang
 * @since 2017-07-11
 */
public class MeetingVo implements Serializable {

	private static final long serialVersionUID = 1L;

	private String workId;
	private String userId;
	private String meeting;



	public String getWorkId() {
		return workId;
	}

	public void setWorkId(String workId) {
		this.workId = workId;
	}

	public String getUserId() {
		return userId;
	}

	public void setUserId(String userId) {
		this.userId = userId;
	}

	public String getMeeting() {
		return meeting;
	}

	public void setMeeting(String meeting) {
		this.meeting = meeting;
	}

	public void checekParam() throws MyException {
		if (this.userId == null  ) {
			throw new MyException(ApiCode.CODE_501, "请重新登录");
		}
		if (this.workId == null) {
			throw new MyException(ApiCode.CODE_501, "网络异常，请稍后重试");
		}
		if (StringUtils.isBlank(meeting)) {
			throw new MyException(ApiCode.CODE_501, "网络异常，请稍后重试");
		}
	}

}
